package org.fall.system.service;

import org.fall.system.model.ResultEntity;
import org.fall.system.model.dto.AdminUserDTO;

import javax.servlet.http.HttpSession;

/**
 * @author zjh
 * @since 2021/3/19 16:13
 */
public interface BackstageIndexService {
    /**
     * 后台登录
     * @param dto dto
     * @param session session
     * @return ResultEntity
     */
    ResultEntity login(AdminUserDTO dto, HttpSession session);

    /**
     * 后台注册
     * @param dto dto
     * @return ResultEntity
     */
    ResultEntity register(AdminUserDTO dto);
}
